package com.tt.fashionWebSite.dao.jpa;

import com.tt.fashionWebSite.dao.ThongTinThanhVienDao;
import com.tt.fashionWebSite.domain.BinhLuan;
import com.tt.fashionWebSite.domain.ThongTinThanhVien;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by isoft-work 5 on 11/7/14.
 */
@Repository("thongTinThanhVien")
public class ThongTinThanhVienJpaDao extends GenericJpaDao<ThongTinThanhVien, String> implements ThongTinThanhVienDao {
   public ThongTinThanhVienJpaDao() {
      super(ThongTinThanhVien.class);
   }

    @Override
    public List<ThongTinThanhVien> getMemberInfor(){
        return getEntityManager().createNamedQuery(ThongTinThanhVien.GET_INFO_MEMBER, ThongTinThanhVien.class).getResultList();
    }

}
